package com.atguigu.juc.t15;

import java.math.BigDecimal;
import java.util.concurrent.RecursiveTask;

public class MyMultiForkJoin extends RecursiveTask<BigDecimal> {
    private Long start = 1L;
    private Long end = 1L;
    private BigDecimal bigDecimal = BigDecimal.valueOf(1);

    public MyMultiForkJoin(Long start,Long end,BigDecimal bigDecimal){
       this.start = start;
       this.end = end;
       this.bigDecimal = bigDecimal;
    }

    @Override
    protected BigDecimal compute() {
       if((end - start)<=10){
          // for (Long i = start; i <= end; i++) bigDecimal = bigDecimal * i;
       }
        return null;
    }
}
